3.299 \(\int \frac{\tan ^9(c+d x)}{(a+b \sec (c+d x))^2} \, dx\)

Optimal. Leaf size=255 \[ \frac{\left (3 a^2-4 b^2\right ) \sec ^4(c+d x)}{4 b^4 d}-\frac{4 a \left (a^2-2 b^2\right ) \sec ^3(c+d x)}{3 b^5 d}+\frac{\left (-12 a^2 b^2+5 a^4+6 b^4\right ) \sec ^2(c+d x)}{2 b^6 d}-\frac{2 a \left (-8 a^2 b^2+3 a^4+6 b^4\right ) \sec (c+d x)}{b^7 d}+\frac{\left (a^2-b^2\right )^4}{a b^8 d (a+b \sec (c+d x))}+\frac{\left (a^2-b^2\right )^3 \left (7 a^2+b^2\right ) \log (a+b \sec (c+d x))}{a^2 b^8 d}-\frac{\log (\cos (c+d x))}{a^2 d}-\frac{2 a \sec ^5(c+d x)}{5 b^3 d}+\frac{\sec ^6(c+d x)}{6 b^2 d} \]

[Out]

-(Log[Cos[c + d*x]]/(a^2*d)) + ((a^2 - b^2)^3*(7*a^2 + b^2)*Log[a + b*Sec[c + d*x]])/(a^2*b^8*d) - (2*a*(3*a^4
 - 8*a^2*b^2 + 6*b^4)*Sec[c + d*x])/(b^7*d) + ((5*a^4 - 12*a^2*b^2 + 6*b^4)*Sec[c + d*x]^2)/(2*b^6*d) - (4*a*(
a^2 - 2*b^2)*Sec[c + d*x]^3)/(3*b^5*d) + ((3*a^2 - 4*b^2)*Sec[c + d*x]^4)/(4*b^4*d) - (2*a*Sec[c + d*x]^5)/(5*
b^3*d) + Sec[c + d*x]^6/(6*b^2*d) + (a^2 - b^2)^4/(a*b^8*d*(a + b*Sec[c + d*x]))

________________________________________________________________________________________

Rubi [A]  time = 0.205109, antiderivative size = 255, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.095, Rules used = {3885, 894} \[ \frac{\left (3 a^2-4 b^2\right ) \sec ^4(c+d x)}{4 b^4 d}-\frac{4 a \left (a^2-2 b^2\right ) \sec ^3(c+d x)}{3 b^5 d}+\frac{\left (-12 a^2 b^2+5 a^4+6 b^4\right ) \sec ^2(c+d x)}{2 b^6 d}-\frac{2 a \left (-8 a^2 b^2+3 a^4+6 b^4\right ) \sec (c+d x)}{b^7 d}+\frac{\left (a^2-b^2\right )^4}{a b^8 d (a+b \sec (c+d x))}+\frac{\left (a^2-b^2\right )^3 \left (7 a^2+b^2\right ) \log (a+b \sec (c+d x))}{a^2 b^8 d}-\frac{\log (\cos (c+d x))}{a^2 d}-\frac{2 a \sec ^5(c+d x)}{5 b^3 d}+\frac{\sec ^6(c+d x)}{6 b^2 d} \]

Antiderivative was successfully verified.

[In]

Int[Tan[c + d*x]^9/(a + b*Sec[c + d*x])^2,x]

[Out]

-(Log[Cos[c + d*x]]/(a^2*d)) + ((a^2 - b^2)^3*(7*a^2 + b^2)*Log[a + b*Sec[c + d*x]])/(a^2*b^8*d) - (2*a*(3*a^4
 - 8*a^2*b^2 + 6*b^4)*Sec[c + d*x])/(b^7*d) + ((5*a^4 - 12*a^2*b^2 + 6*b^4)*Sec[c + d*x]^2)/(2*b^6*d) - (4*a*(
a^2 - 2*b^2)*Sec[c + d*x]^3)/(3*b^5*d) + ((3*a^2 - 4*b^2)*Sec[c + d*x]^4)/(4*b^4*d) - (2*a*Sec[c + d*x]^5)/(5*
b^3*d) + Sec[c + d*x]^6/(6*b^2*d) + (a^2 - b^2)^4/(a*b^8*d*(a + b*Sec[c + d*x]))

Rule 3885

Int[cot[(c_.) + (d_.)*(x_)]^(m_.)*(csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_))^(n_), x_Symbol] :> -Dist[(-1)^((m - 1
)/2)/(d*b^(m - 1)), Subst[Int[((b^2 - x^2)^((m - 1)/2)*(a + x)^n)/x, x], x, b*Csc[c + d*x]], x] /; FreeQ[{a, b
, c, d, n}, x] && IntegerQ[(m - 1)/2] && NeQ[a^2 - b^2, 0]

Rule 894

Int[((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))^(n_)*((a_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[ExpandIn
tegrand[(d + e*x)^m*(f + g*x)^n*(a + c*x^2)^p, x], x] /; FreeQ[{a, c, d, e, f, g}, x] && NeQ[e*f - d*g, 0] &&
NeQ[c*d^2 + a*e^2, 0] && IntegerQ[p] && ((EqQ[p, 1] && IntegersQ[m, n]) || (ILtQ[m, 0] && ILtQ[n, 0]))

Rubi steps

\begin{align*} \int \frac{\tan ^9(c+d x)}{(a+b \sec (c+d x))^2} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{\left (b^2-x^2\right )^4}{x (a+x)^2} \, dx,x,b \sec (c+d x)\right )}{b^8 d}\\ &=\frac{\operatorname{Subst}\left (\int \left (-2 a \left (3 a^4-8 a^2 b^2+6 b^4\right )+\frac{b^8}{a^2 x}+\left (5 a^4-12 a^2 b^2+6 b^4\right ) x-4 a \left (a^2-2 b^2\right ) x^2+\left (3 a^2-4 b^2\right ) x^3-2 a x^4+x^5-\frac{\left (a^2-b^2\right )^4}{a (a+x)^2}+\frac{\left (a^2-b^2\right )^3 \left (7 a^2+b^2\right )}{a^2 (a+x)}\right ) \, dx,x,b \sec (c+d x)\right )}{b^8 d}\\ &=-\frac{\log (\cos (c+d x))}{a^2 d}+\frac{\left (a^2-b^2\right )^3 \left (7 a^2+b^2\right ) \log (a+b \sec (c+d x))}{a^2 b^8 d}-\frac{2 a \left (3 a^4-8 a^2 b^2+6 b^4\right ) \sec (c+d x)}{b^7 d}+\frac{\left (5 a^4-12 a^2 b^2+6 b^4\right ) \sec ^2(c+d x)}{2 b^6 d}-\frac{4 a \left (a^2-2 b^2\right ) \sec ^3(c+d x)}{3 b^5 d}+\frac{\left (3 a^2-4 b^2\right ) \sec ^4(c+d x)}{4 b^4 d}-\frac{2 a \sec ^5(c+d x)}{5 b^3 d}+\frac{\sec ^6(c+d x)}{6 b^2 d}+\frac{\left (a^2-b^2\right )^4}{a b^8 d (a+b \sec (c+d x))}\\ \end{align*}

Mathematica [B]  time = 6.27456, size = 528, normalized size = 2.07 \[ \frac{\left (3 a^2-4 b^2\right ) \sec ^6(c+d x) (a \cos (c+d x)+b)^2}{4 b^4 d (a+b \sec (c+d x))^2}+\frac{4 a \left (2 b^2-a^2\right ) \sec ^5(c+d x) (a \cos (c+d x)+b)^2}{3 b^5 d (a+b \sec (c+d x))^2}+\frac{\left (-12 a^2 b^2+5 a^4+6 b^4\right ) \sec ^4(c+d x) (a \cos (c+d x)+b)^2}{2 b^6 d (a+b \sec (c+d x))^2}-\frac{2 a \left (-8 a^2 b^2+3 a^4+6 b^4\right ) \sec ^3(c+d x) (a \cos (c+d x)+b)^2}{b^7 d (a+b \sec (c+d x))^2}-\frac{(b-a)^4 (a+b)^4 \sec ^2(c+d x) (a \cos (c+d x)+b)}{a^2 b^7 d (a+b \sec (c+d x))^2}+\frac{\left (20 a^4 b^2-18 a^2 b^4-7 a^6+4 b^6\right ) \sec ^2(c+d x) \log (\cos (c+d x)) (a \cos (c+d x)+b)^2}{b^8 d (a+b \sec (c+d x))^2}+\frac{\left (-20 a^6 b^2+18 a^4 b^4-4 a^2 b^6+7 a^8-b^8\right ) \sec ^2(c+d x) (a \cos (c+d x)+b)^2 \log (a \cos (c+d x)+b)}{a^2 b^8 d (a+b \sec (c+d x))^2}+\frac{\sec ^8(c+d x) (a \cos (c+d x)+b)^2}{6 b^2 d (a+b \sec (c+d x))^2}-\frac{2 a \sec ^7(c+d x) (a \cos (c+d x)+b)^2}{5 b^3 d (a+b \sec (c+d x))^2} \]

Warning: Unable to verify antiderivative.

[In]

Integrate[Tan[c + d*x]^9/(a + b*Sec[c + d*x])^2,x]

[Out]

-(((-a + b)^4*(a + b)^4*(b + a*Cos[c + d*x])*Sec[c + d*x]^2)/(a^2*b^7*d*(a + b*Sec[c + d*x])^2)) + ((-7*a^6 +
20*a^4*b^2 - 18*a^2*b^4 + 4*b^6)*(b + a*Cos[c + d*x])^2*Log[Cos[c + d*x]]*Sec[c + d*x]^2)/(b^8*d*(a + b*Sec[c
+ d*x])^2) + ((7*a^8 - 20*a^6*b^2 + 18*a^4*b^4 - 4*a^2*b^6 - b^8)*(b + a*Cos[c + d*x])^2*Log[b + a*Cos[c + d*x
]]*Sec[c + d*x]^2)/(a^2*b^8*d*(a + b*Sec[c + d*x])^2) - (2*a*(3*a^4 - 8*a^2*b^2 + 6*b^4)*(b + a*Cos[c + d*x])^
2*Sec[c + d*x]^3)/(b^7*d*(a + b*Sec[c + d*x])^2) + ((5*a^4 - 12*a^2*b^2 + 6*b^4)*(b + a*Cos[c + d*x])^2*Sec[c
+ d*x]^4)/(2*b^6*d*(a + b*Sec[c + d*x])^2) + (4*a*(-a^2 + 2*b^2)*(b + a*Cos[c + d*x])^2*Sec[c + d*x]^5)/(3*b^5
*d*(a + b*Sec[c + d*x])^2) + ((3*a^2 - 4*b^2)*(b + a*Cos[c + d*x])^2*Sec[c + d*x]^6)/(4*b^4*d*(a + b*Sec[c + d
*x])^2) - (2*a*(b + a*Cos[c + d*x])^2*Sec[c + d*x]^7)/(5*b^3*d*(a + b*Sec[c + d*x])^2) + ((b + a*Cos[c + d*x])
^2*Sec[c + d*x]^8)/(6*b^2*d*(a + b*Sec[c + d*x])^2)

________________________________________________________________________________________

Maple [B]  time = 0.072, size = 498, normalized size = 2. \begin{align*} -{\frac{{a}^{6}}{d{b}^{7} \left ( b+a\cos \left ( dx+c \right ) \right ) }}+4\,{\frac{{a}^{4}}{d{b}^{5} \left ( b+a\cos \left ( dx+c \right ) \right ) }}-6\,{\frac{{a}^{2}}{d{b}^{3} \left ( b+a\cos \left ( dx+c \right ) \right ) }}-{\frac{b}{d{a}^{2} \left ( b+a\cos \left ( dx+c \right ) \right ) }}-7\,{\frac{\ln \left ( \cos \left ( dx+c \right ) \right ){a}^{6}}{d{b}^{8}}}+20\,{\frac{\ln \left ( \cos \left ( dx+c \right ) \right ){a}^{4}}{d{b}^{6}}}-18\,{\frac{\ln \left ( \cos \left ( dx+c \right ) \right ){a}^{2}}{d{b}^{4}}}-{\frac{2\,a}{5\,d{b}^{3} \left ( \cos \left ( dx+c \right ) \right ) ^{5}}}-{\frac{4\,{a}^{3}}{3\,d{b}^{5} \left ( \cos \left ( dx+c \right ) \right ) ^{3}}}+{\frac{8\,a}{3\,d{b}^{3} \left ( \cos \left ( dx+c \right ) \right ) ^{3}}}-6\,{\frac{{a}^{5}}{d{b}^{7}\cos \left ( dx+c \right ) }}+16\,{\frac{{a}^{3}}{d{b}^{5}\cos \left ( dx+c \right ) }}-12\,{\frac{a}{d{b}^{3}\cos \left ( dx+c \right ) }}+7\,{\frac{{a}^{6}\ln \left ( b+a\cos \left ( dx+c \right ) \right ) }{d{b}^{8}}}-20\,{\frac{{a}^{4}\ln \left ( b+a\cos \left ( dx+c \right ) \right ) }{d{b}^{6}}}+18\,{\frac{{a}^{2}\ln \left ( b+a\cos \left ( dx+c \right ) \right ) }{d{b}^{4}}}+{\frac{3\,{a}^{2}}{4\,d{b}^{4} \left ( \cos \left ( dx+c \right ) \right ) ^{4}}}+{\frac{5\,{a}^{4}}{2\,d{b}^{6} \left ( \cos \left ( dx+c \right ) \right ) ^{2}}}-6\,{\frac{{a}^{2}}{d{b}^{4} \left ( \cos \left ( dx+c \right ) \right ) ^{2}}}-4\,{\frac{\ln \left ( b+a\cos \left ( dx+c \right ) \right ) }{d{b}^{2}}}-{\frac{\ln \left ( b+a\cos \left ( dx+c \right ) \right ) }{d{a}^{2}}}+4\,{\frac{1}{db \left ( b+a\cos \left ( dx+c \right ) \right ) }}-{\frac{1}{d{b}^{2} \left ( \cos \left ( dx+c \right ) \right ) ^{4}}}+3\,{\frac{1}{d{b}^{2} \left ( \cos \left ( dx+c \right ) \right ) ^{2}}}+4\,{\frac{\ln \left ( \cos \left ( dx+c \right ) \right ) }{d{b}^{2}}}+{\frac{1}{6\,d{b}^{2} \left ( \cos \left ( dx+c \right ) \right ) ^{6}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(tan(d*x+c)^9/(a+b*sec(d*x+c))^2,x)

[Out]

-1/d*a^6/b^7/(b+a*cos(d*x+c))+4/d*a^4/b^5/(b+a*cos(d*x+c))-6/d*a^2/b^3/(b+a*cos(d*x+c))-1/d/a^2*b/(b+a*cos(d*x
+c))-7/d/b^8*ln(cos(d*x+c))*a^6+20/d/b^6*ln(cos(d*x+c))*a^4-18/d/b^4*ln(cos(d*x+c))*a^2-2/5/d/b^3*a/cos(d*x+c)
^5-4/3/d*a^3/b^5/cos(d*x+c)^3+8/3/d*a/b^3/cos(d*x+c)^3-6/d*a^5/b^7/cos(d*x+c)+16/d*a^3/b^5/cos(d*x+c)-12/d*a/b
^3/cos(d*x+c)+7/d/b^8*a^6*ln(b+a*cos(d*x+c))-20/d/b^6*a^4*ln(b+a*cos(d*x+c))+18/d/b^4*a^2*ln(b+a*cos(d*x+c))+3
/4/d/b^4/cos(d*x+c)^4*a^2+5/2/d/b^6/cos(d*x+c)^2*a^4-6/d/b^4/cos(d*x+c)^2*a^2-4/d/b^2*ln(b+a*cos(d*x+c))-1/d/a
^2*ln(b+a*cos(d*x+c))+4/d/b/(b+a*cos(d*x+c))-1/d/b^2/cos(d*x+c)^4+3/d/b^2/cos(d*x+c)^2+4/d/b^2*ln(cos(d*x+c))+
1/6/d/b^2/cos(d*x+c)^6

________________________________________________________________________________________

Maxima [A]  time = 1.02159, size = 433, normalized size = 1.7 \begin{align*} -\frac{\frac{14 \, a^{3} b^{5} \cos \left (d x + c\right ) - 10 \, a^{2} b^{6} + 60 \,{\left (7 \, a^{8} - 20 \, a^{6} b^{2} + 18 \, a^{4} b^{4} - 4 \, a^{2} b^{6} + b^{8}\right )} \cos \left (d x + c\right )^{6} + 30 \,{\left (7 \, a^{7} b - 20 \, a^{5} b^{3} + 18 \, a^{3} b^{5}\right )} \cos \left (d x + c\right )^{5} - 10 \,{\left (7 \, a^{6} b^{2} - 20 \, a^{4} b^{4} + 18 \, a^{2} b^{6}\right )} \cos \left (d x + c\right )^{4} + 5 \,{\left (7 \, a^{5} b^{3} - 20 \, a^{3} b^{5}\right )} \cos \left (d x + c\right )^{3} - 3 \,{\left (7 \, a^{4} b^{4} - 20 \, a^{2} b^{6}\right )} \cos \left (d x + c\right )^{2}}{a^{3} b^{7} \cos \left (d x + c\right )^{7} + a^{2} b^{8} \cos \left (d x + c\right )^{6}} + \frac{60 \,{\left (7 \, a^{6} - 20 \, a^{4} b^{2} + 18 \, a^{2} b^{4} - 4 \, b^{6}\right )} \log \left (\cos \left (d x + c\right )\right )}{b^{8}} - \frac{60 \,{\left (7 \, a^{8} - 20 \, a^{6} b^{2} + 18 \, a^{4} b^{4} - 4 \, a^{2} b^{6} - b^{8}\right )} \log \left (a \cos \left (d x + c\right ) + b\right )}{a^{2} b^{8}}}{60 \, d} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(tan(d*x+c)^9/(a+b*sec(d*x+c))^2,x, algorithm="maxima")

[Out]

-1/60*((14*a^3*b^5*cos(d*x + c) - 10*a^2*b^6 + 60*(7*a^8 - 20*a^6*b^2 + 18*a^4*b^4 - 4*a^2*b^6 + b^8)*cos(d*x
+ c)^6 + 30*(7*a^7*b - 20*a^5*b^3 + 18*a^3*b^5)*cos(d*x + c)^5 - 10*(7*a^6*b^2 - 20*a^4*b^4 + 18*a^2*b^6)*cos(
d*x + c)^4 + 5*(7*a^5*b^3 - 20*a^3*b^5)*cos(d*x + c)^3 - 3*(7*a^4*b^4 - 20*a^2*b^6)*cos(d*x + c)^2)/(a^3*b^7*c
os(d*x + c)^7 + a^2*b^8*cos(d*x + c)^6) + 60*(7*a^6 - 20*a^4*b^2 + 18*a^2*b^4 - 4*b^6)*log(cos(d*x + c))/b^8 -
 60*(7*a^8 - 20*a^6*b^2 + 18*a^4*b^4 - 4*a^2*b^6 - b^8)*log(a*cos(d*x + c) + b)/(a^2*b^8))/d

________________________________________________________________________________________

Fricas [A]  time = 1.55956, size = 946, normalized size = 3.71 \begin{align*} -\frac{14 \, a^{3} b^{6} \cos \left (d x + c\right ) - 10 \, a^{2} b^{7} + 60 \,{\left (7 \, a^{8} b - 20 \, a^{6} b^{3} + 18 \, a^{4} b^{5} - 4 \, a^{2} b^{7} + b^{9}\right )} \cos \left (d x + c\right )^{6} + 30 \,{\left (7 \, a^{7} b^{2} - 20 \, a^{5} b^{4} + 18 \, a^{3} b^{6}\right )} \cos \left (d x + c\right )^{5} - 10 \,{\left (7 \, a^{6} b^{3} - 20 \, a^{4} b^{5} + 18 \, a^{2} b^{7}\right )} \cos \left (d x + c\right )^{4} + 5 \,{\left (7 \, a^{5} b^{4} - 20 \, a^{3} b^{6}\right )} \cos \left (d x + c\right )^{3} - 3 \,{\left (7 \, a^{4} b^{5} - 20 \, a^{2} b^{7}\right )} \cos \left (d x + c\right )^{2} - 60 \,{\left ({\left (7 \, a^{9} - 20 \, a^{7} b^{2} + 18 \, a^{5} b^{4} - 4 \, a^{3} b^{6} - a b^{8}\right )} \cos \left (d x + c\right )^{7} +{\left (7 \, a^{8} b - 20 \, a^{6} b^{3} + 18 \, a^{4} b^{5} - 4 \, a^{2} b^{7} - b^{9}\right )} \cos \left (d x + c\right )^{6}\right )} \log \left (a \cos \left (d x + c\right ) + b\right ) + 60 \,{\left ({\left (7 \, a^{9} - 20 \, a^{7} b^{2} + 18 \, a^{5} b^{4} - 4 \, a^{3} b^{6}\right )} \cos \left (d x + c\right )^{7} +{\left (7 \, a^{8} b - 20 \, a^{6} b^{3} + 18 \, a^{4} b^{5} - 4 \, a^{2} b^{7}\right )} \cos \left (d x + c\right )^{6}\right )} \log \left (-\cos \left (d x + c\right )\right )}{60 \,{\left (a^{3} b^{8} d \cos \left (d x + c\right )^{7} + a^{2} b^{9} d \cos \left (d x + c\right )^{6}\right )}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(tan(d*x+c)^9/(a+b*sec(d*x+c))^2,x, algorithm="fricas")

[Out]

-1/60*(14*a^3*b^6*cos(d*x + c) - 10*a^2*b^7 + 60*(7*a^8*b - 20*a^6*b^3 + 18*a^4*b^5 - 4*a^2*b^7 + b^9)*cos(d*x
 + c)^6 + 30*(7*a^7*b^2 - 20*a^5*b^4 + 18*a^3*b^6)*cos(d*x + c)^5 - 10*(7*a^6*b^3 - 20*a^4*b^5 + 18*a^2*b^7)*c
os(d*x + c)^4 + 5*(7*a^5*b^4 - 20*a^3*b^6)*cos(d*x + c)^3 - 3*(7*a^4*b^5 - 20*a^2*b^7)*cos(d*x + c)^2 - 60*((7
*a^9 - 20*a^7*b^2 + 18*a^5*b^4 - 4*a^3*b^6 - a*b^8)*cos(d*x + c)^7 + (7*a^8*b - 20*a^6*b^3 + 18*a^4*b^5 - 4*a^
2*b^7 - b^9)*cos(d*x + c)^6)*log(a*cos(d*x + c) + b) + 60*((7*a^9 - 20*a^7*b^2 + 18*a^5*b^4 - 4*a^3*b^6)*cos(d
*x + c)^7 + (7*a^8*b - 20*a^6*b^3 + 18*a^4*b^5 - 4*a^2*b^7)*cos(d*x + c)^6)*log(-cos(d*x + c)))/(a^3*b^8*d*cos
(d*x + c)^7 + a^2*b^9*d*cos(d*x + c)^6)

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(tan(d*x+c)**9/(a+b*sec(d*x+c))**2,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [B]  time = 10.865, size = 2290, normalized size = 8.98 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(tan(d*x+c)^9/(a+b*sec(d*x+c))^2,x, algorithm="giac")

[Out]

1/60*(60*(7*a^9 - 7*a^8*b - 20*a^7*b^2 + 20*a^6*b^3 + 18*a^5*b^4 - 18*a^4*b^5 - 4*a^3*b^6 + 4*a^2*b^7 - a*b^8
+ b^9)*log(abs(a + b + a*(cos(d*x + c) - 1)/(cos(d*x + c) + 1) - b*(cos(d*x + c) - 1)/(cos(d*x + c) + 1)))/(a^
3*b^8 - a^2*b^9) + 60*log(abs(-(cos(d*x + c) - 1)/(cos(d*x + c) + 1) + 1))/a^2 - 60*(7*a^6 - 20*a^4*b^2 + 18*a
^2*b^4 - 4*b^6)*log(abs(-(cos(d*x + c) - 1)/(cos(d*x + c) + 1) - 1))/b^8 - 60*(7*a^9 + 9*a^8*b - 18*a^7*b^2 -
26*a^6*b^3 + 12*a^5*b^4 + 24*a^4*b^5 + 2*a^3*b^6 - 6*a^2*b^7 - 3*a*b^8 - b^9 + 7*a^9*(cos(d*x + c) - 1)/(cos(d
*x + c) + 1) - 7*a^8*b*(cos(d*x + c) - 1)/(cos(d*x + c) + 1) - 20*a^7*b^2*(cos(d*x + c) - 1)/(cos(d*x + c) + 1
) + 20*a^6*b^3*(cos(d*x + c) - 1)/(cos(d*x + c) + 1) + 18*a^5*b^4*(cos(d*x + c) - 1)/(cos(d*x + c) + 1) - 18*a
^4*b^5*(cos(d*x + c) - 1)/(cos(d*x + c) + 1) - 4*a^3*b^6*(cos(d*x + c) - 1)/(cos(d*x + c) + 1) + 4*a^2*b^7*(co
s(d*x + c) - 1)/(cos(d*x + c) + 1) - a*b^8*(cos(d*x + c) - 1)/(cos(d*x + c) + 1) + b^9*(cos(d*x + c) - 1)/(cos
(d*x + c) + 1))/((a + b + a*(cos(d*x + c) - 1)/(cos(d*x + c) + 1) - b*(cos(d*x + c) - 1)/(cos(d*x + c) + 1))*a
^2*b^8) + (1029*a^6 - 720*a^5*b - 2940*a^4*b^2 + 1760*a^3*b^3 + 2646*a^2*b^4 - 1168*a*b^5 - 588*b^6 + 6174*a^6
*(cos(d*x + c) - 1)/(cos(d*x + c) + 1) - 3600*a^5*b*(cos(d*x + c) - 1)/(cos(d*x + c) + 1) - 18240*a^4*b^2*(cos
(d*x + c) - 1)/(cos(d*x + c) + 1) + 9120*a^3*b^3*(cos(d*x + c) - 1)/(cos(d*x + c) + 1) + 16956*a^2*b^4*(cos(d*
x + c) - 1)/(cos(d*x + c) + 1) - 6288*a*b^5*(cos(d*x + c) - 1)/(cos(d*x + c) + 1) - 3888*b^6*(cos(d*x + c) - 1
)/(cos(d*x + c) + 1) + 15435*a^6*(cos(d*x + c) - 1)^2/(cos(d*x + c) + 1)^2 - 7200*a^5*b*(cos(d*x + c) - 1)^2/(
cos(d*x + c) + 1)^2 - 46500*a^4*b^2*(cos(d*x + c) - 1)^2/(cos(d*x + c) + 1)^2 + 18240*a^3*b^3*(cos(d*x + c) -
1)^2/(cos(d*x + c) + 1)^2 + 44730*a^2*b^4*(cos(d*x + c) - 1)^2/(cos(d*x + c) + 1)^2 - 12960*a*b^5*(cos(d*x + c
) - 1)^2/(cos(d*x + c) + 1)^2 - 10740*b^6*(cos(d*x + c) - 1)^2/(cos(d*x + c) + 1)^2 + 20580*a^6*(cos(d*x + c)
- 1)^3/(cos(d*x + c) + 1)^3 - 7200*a^5*b*(cos(d*x + c) - 1)^3/(cos(d*x + c) + 1)^3 - 62400*a^4*b^2*(cos(d*x +
c) - 1)^3/(cos(d*x + c) + 1)^3 + 17600*a^3*b^3*(cos(d*x + c) - 1)^3/(cos(d*x + c) + 1)^3 + 60840*a^2*b^4*(cos(
d*x + c) - 1)^3/(cos(d*x + c) + 1)^3 - 11680*a*b^5*(cos(d*x + c) - 1)^3/(cos(d*x + c) + 1)^3 - 15520*b^6*(cos(
d*x + c) - 1)^3/(cos(d*x + c) + 1)^3 + 15435*a^6*(cos(d*x + c) - 1)^4/(cos(d*x + c) + 1)^4 - 3600*a^5*b*(cos(d
*x + c) - 1)^4/(cos(d*x + c) + 1)^4 - 46500*a^4*b^2*(cos(d*x + c) - 1)^4/(cos(d*x + c) + 1)^4 + 8160*a^3*b^3*(
cos(d*x + c) - 1)^4/(cos(d*x + c) + 1)^4 + 44730*a^2*b^4*(cos(d*x + c) - 1)^4/(cos(d*x + c) + 1)^4 - 4560*a*b^
5*(cos(d*x + c) - 1)^4/(cos(d*x + c) + 1)^4 - 10740*b^6*(cos(d*x + c) - 1)^4/(cos(d*x + c) + 1)^4 + 6174*a^6*(
cos(d*x + c) - 1)^5/(cos(d*x + c) + 1)^5 - 720*a^5*b*(cos(d*x + c) - 1)^5/(cos(d*x + c) + 1)^5 - 18240*a^4*b^2
*(cos(d*x + c) - 1)^5/(cos(d*x + c) + 1)^5 + 1440*a^3*b^3*(cos(d*x + c) - 1)^5/(cos(d*x + c) + 1)^5 + 16956*a^
2*b^4*(cos(d*x + c) - 1)^5/(cos(d*x + c) + 1)^5 - 720*a*b^5*(cos(d*x + c) - 1)^5/(cos(d*x + c) + 1)^5 - 3888*b
^6*(cos(d*x + c) - 1)^5/(cos(d*x + c) + 1)^5 + 1029*a^6*(cos(d*x + c) - 1)^6/(cos(d*x + c) + 1)^6 - 2940*a^4*b
^2*(cos(d*x + c) - 1)^6/(cos(d*x + c) + 1)^6 + 2646*a^2*b^4*(cos(d*x + c) - 1)^6/(cos(d*x + c) + 1)^6 - 588*b^
6*(cos(d*x + c) - 1)^6/(cos(d*x + c) + 1)^6)/(b^8*((cos(d*x + c) - 1)/(cos(d*x + c) + 1) + 1)^6))/d